package com.example.common.config;

import com.example.common.handler.ResponseAdvice;
import com.example.common.handler.RestExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 自动配置
 * @author mie
 */
@Configuration
public class BaseAppCommonAutoConfiguration {
    @Bean
    public ResponseAdvice responseAdvice(){
        return new ResponseAdvice() ;
    }
    @Bean
    public RestExceptionHandler restExceptionHandler(){
        return new RestExceptionHandler();
    }

}
